package com.bysj.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 房源收藏对象 bysj_collect_house
 * 
 * @author bysj
 * @date 2024-02-03
 */
public class CollectHouse extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 收藏记录编号 */
    private Long id;

    /** 房源编号 */
    @Excel(name = "房源编号")
    private Long houseId;

    /** 收藏人编号 */
    @Excel(name = "收藏人编号")
    private Long collectorId;

    /** 收藏人姓名 */
    @Excel(name = "收藏人姓名")
    private String collectorName;

    /** 收藏人手机号 */
    @Excel(name = "收藏人手机号")
    private String collectorPhone;

    /** 收藏时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "收藏时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date collectionTime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setHouseId(Long houseId) 
    {
        this.houseId = houseId;
    }

    public Long getHouseId() 
    {
        return houseId;
    }
    public void setCollectorId(Long collectorId) 
    {
        this.collectorId = collectorId;
    }

    public Long getCollectorId() 
    {
        return collectorId;
    }
    public void setCollectorName(String collectorName) 
    {
        this.collectorName = collectorName;
    }

    public String getCollectorName() 
    {
        return collectorName;
    }
    public void setCollectorPhone(String collectorPhone) 
    {
        this.collectorPhone = collectorPhone;
    }

    public String getCollectorPhone() 
    {
        return collectorPhone;
    }
    public void setCollectionTime(Date collectionTime) 
    {
        this.collectionTime = collectionTime;
    }

    public Date getCollectionTime() 
    {
        return collectionTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("houseId", getHouseId())
            .append("collectorId", getCollectorId())
            .append("collectorName", getCollectorName())
            .append("collectorPhone", getCollectorPhone())
            .append("collectionTime", getCollectionTime())
            .append("remark", getRemark())
            .toString();
    }
}
